projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eab5a93
)
libxl: actually print an error when execve (in libxl__exec) fails
author
Ian Jackson
<Ian.Jackson@eu.citrix.com>
Fri, 4 Feb 2011 18:46:00 +0000
(18:46 +0000)
committer
Ian Jackson
<Ian.Jackson@eu.citrix.com>
Fri, 4 Feb 2011 18:46:00 +0000
(18:46 +0000)
The header comment says libxl__exec logs errors. So it should do so.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_exec.c
patch
|
blob
|
history
diff --git
a/tools/libxl/libxl_exec.c
b/tools/libxl/libxl_exec.c
index 6c212209f306474343f99f84273b7a1af7b7a5d1..e770fd3e0943390bef3fafc8dd85b70998de99d7 100644
(file)
--- a/
tools/libxl/libxl_exec.c
+++ b/
tools/libxl/libxl_exec.c
@@
-55,6
+55,8
@@
void libxl__exec(int stdinfd, int stdoutfd, int stderrfd, const char *arg0,
* to assume they got DFL. */
execvp(arg0, args);
+
+ fprintf(stderr, "libxl: cannot execute %s: %s\n", arg0, strerror(errno));
_exit(-1);
}